﻿<table class="table table-hover">
    <tr>
        <th>Id</th>
        <th>Parent_id</th>
        <th>Level</th>
        <th>Link</th>
        <th>Tên Tiếng Anh</th>
        <th>Tên Tiếng Việt</th>
        <th>Trạng Thái</th>
        <th></th>
    </tr>
    @foreach (var c in ViewBag.Categorys)
    {
        <tr>
            <td>@c.Id</td>
            <td>@c.Parent_id</td>
            <td>@c.Level</td>
            <td>@c.Link</td>
            <td>@c.Name</td>
            <td>@c.NameVN</td>
            <td>@c.Status</td>

            <td>
                <a href="/Admin/Category/Edit/@c.Id"
                   class="btn btn-default">Edit</a>
                <a href="/Admin/Category/Delete/@c.Id" onclick="return Xoa();" class="btn btn-default">Delete</a>
            </td>
        </tr>
    }
</table>
